<div class="photo_thumbnail">
    <!-- The photo -->
    <?php $photo = new ORM('photo'); $photo->find($user->photo_id); ?>
    <a href="<?php echo URL::site('profile?uid=' . $user->id ); ?>">
        <img class="thumb" alt="" src="<?php echo URL::base_url() . ($photo->id != null ? $photo->link : 'public/upload/default/profpic.png' ) ?>" />
    </a>

    <!-- The username and category -->
    <div class="uploader_name"><?php echo $user->username; ?></div>

    <!-- Cartegory -->
    <div class="categ_name"><?php echo $user->name; ?></div>
</div>
